import sys
import os
import simpleweb.utils

def init_db(name, args, parser):
    '''
Runs the models.py file with __name__ == '__main__'.
Use this to do any pre-application data setup. 

NOTE: config.db_plugin must be setup first.


arguments: None'''
    option, args = parser.parse_args(args)

    if len(args) > 0:
        parser.print_usage()
        sys.exit(0)

    #TODO: Use pipes to run this?
    os.system('python models.py')
